﻿using System;
using System.Collections.Generic;
using System.Text;
using UtilZ.Dotnet.Ex.Model;

namespace UtilZ.Dotnet.Ex.Communication.Base
{
    /// <summary>
    /// 接收数据输出事件参数类
    /// </summary>
    public class DataOutputArgs : EventArgs, IDataOutputArgs
    {
        /// <summary>
        /// 连接信息
        /// </summary>
        public LinkInfoAbs LinkInfo { get; private set; }

        /// <summary>
        /// 输出的数据
        /// </summary>
        public BufferData Data { get; private set; }

      
         

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="linkInfo">连接信息</param>
        /// <param name="data">数据</param>
        public DataOutputArgs(LinkInfoAbs linkInfo, BufferData data)
        {
            this.LinkInfo = linkInfo;
            this.Data = data;
        }
    }
}
